package pl.easyshop.core.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

public class ProductPrice {
	
	/** Purchase price. */
	@Column(name="purchase_price", precision=2)
	private BigDecimal purchasePrice;

	/** Previous price of product without tax. */
	@Column(name="previous_price", precision=2, nullable=false)
	private BigDecimal previousPrice;
	
	/** Tax. */
	@Column(name="tax", nullable=false)
	private int tax;
	
	/** Special product price is valid for the period between {@link #specialPriceFromDate} and {@link #specialPriceToDate}. */
	@Column(name="special_price", precision=2)
	private BigDecimal specialPrice;
	
	/** Special product price from date. */
	@Column(name="special_price_from_date")
	@Temporal(TemporalType.TIMESTAMP)
	private Date specialPriceFromDate;
	
	/** Special product price to date. */
	@Column(name="special_price_to_date")
	@Temporal(TemporalType.TIMESTAMP)
	private Date specialPriceToDate;
	
	
	
}
